<!DOCTYPE html>
<html>
	<head>
		<!--#include("include/common.head.html") {}  -->
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/master.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/gloable.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/nprogress.css?v=${jsVer}" />
		<link rel="stylesheet" href="${ctxPath}${tpl}/css/blog.css?v=${jsVer}" />
	</head>
	<body>
		<header class="gird-header">
			<div class="header-fixed">
				<div class="header-inner">
					<a href="${ctxPath}/" class="header-logo" id="logo">
						<!--#
							var siteNameTupian = null;
							var siteNameTupianFile = null;
							if (parameter.lang == null || parameter.lang == 'zh_CN' || parameter.lang == '') {
								siteNameTupian = core.config("网站名称图片-中文");
							} else if (parameter.lang == 'en_US') {
								siteNameTupian = core.config("网站名称图片-英文");
							} else if (parameter.lang == 'it_IT') {
								siteNameTupian = core.config("网站名称图片-意大利文");
							}
							if (siteNameTupian != null) siteNameTupianFile = core.file(siteNameTupian.imageId)[0];
						-->

						<!--# if (siteNameTupianFile != null) { -->
						<img src="/core/file/inline/${siteNameTupianFile.id}" style="max-width:245px;height:70px" />
						<!--# } -->
					</a>
					<nav class="nav" id="nav">
						<ul>
							<li class="nav-li"><a class="nav-a" href="${ctxPath}/">${util.getLocalValue("site.home")}</a></li>
							<!--#
							var navTopCatalogList = cms.getCatalogByDictTypeAndValueAndParentCatalogId("catalog_position", "nav_top","");
							for(catalog in navTopCatalogList) {
								var subCatalogList = cms.getCatalogByDictTypeAndValueAndParentCatalogId("","",catalog.id);
							-->
							<li class="nav-li <!--# if (curCatalog.id!0 == catalog.id || article.catalogId!0 == catalog.id ) {  -->current<!--# } -->">
								<a class="nav-a" href="${catalog.accessUrl+'?id='+catalog.id}&lang=${parameter.lang}">${util.getCatalogName(catalog) }</a>
								<!--# if (subCatalogList != null && subCatalogList.~size > 0) { -->
								<div class="nav-a-sub" <!--# if (catalogLP.index == 1) { -->style="left:-70px" <!--# } --> >
									<!--# for(subCatalog in subCatalogList) {  -->
									<a class="" a="${subCatalogLP.index}" href="${(subCatalog.code! == null || subCatalog.code! == '') ? (subCatalog.accessUrl!+'?id='+subCatalog.id!) : subCatalog.code!}&lang=${parameter.lang}">${util.getCatalogName(subCatalog)! }</a>
									<!--# } -->
								</div>
								<!--# } -->
							</li>
							<!--#} -->
							<li class="nav-li align-center" style="padding:0 10px">
								<a class="lang-a <!--# if (parameter.lang == 'zh_CN' || parameter.lang == null || parameter.lang == '') {-->on<!--# } -->" href="?${util.parameters()}">中</a>
								<a class="lang-a <!--# if (parameter.lang == 'en_US') {-->on<!--# } -->" href="?${util.parameters()}&lang=en_US">En</a>
								<a class="lang-a <!--# if (parameter.lang == 'it_IT') {-->on<!--# } -->" href="?${util.parameters()}&lang=it_IT">It</a>
							</li>
						</ul>
					</nav>
					<a class="phone-menu">
						<i></i>
						<i></i>
						<i></i>
					</a>
				</div>
			</div>
		</header>
		${layoutContent}
		<footer class="footer">
			<div class="footer-fixed">
				<div class="layui-row">
					<div class="layui-row">
						${util.getConfigContent(core.config("首页下方-联系我们"))}
					</div>
					<div class="layui-row">
						${core.config("备案号").content!}
					</div>
					<div class="layui-row">
						<!--#
						var footerCatalogList = cms.getCatalogByDictTypeAndValueAndParentCatalogId("catalog_position", "nav_bottom","");
						for(footerCatalog in footerCatalogList) {
						-->
						<ul class="social-icon">
							<li class="float-left margin-right">友情链接：</li>
							<!--# var limit = 20;  -->
							<layui:cmsArticleList var="articlePage" tagValue="${parameter.tag}" catalogId="${ stringUtil.toString(footerCatalog.id!)}" keywords="${parameter.keywords}" orderby="id desc" page="${parameter.page!'1'}" pageSize="${ stringUtil.toString(limit)}">
								<!--# for(article in articlePage.list) { -->
								<li class="active float-left margin-right"><a href="${article.url}" target="_blank">${article.title}</a></li>
								<!--#} -->
							</layui:cmsArticleList>
						</ul>
						<!--#} -->
					</div>
				</div>
			</div>
		</footer>
		<script src="${ctxPath}${tpl}/js/global.js?v=${jsVer}"></script>
	</body>
</html>
